/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package entidades;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author Felipe
 */
@Entity
@Table (name = "CONTACTOS")
@XmlRootElement
public class Contacto implements Serializable
{
    @Id
    @Column (name = "ID_CONTACTO")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private long id;
    
    @Column (name = "FIJO")
    private String fijo;
    
    @Column (name = "CELULAR")
    private String celular;
    
    @Column (name = "EMAIL")
    private String email;
    
    @Column (name = "RED_SOCIAL")
    private String redSocial;
    
    public Contacto ()
    {
        
    }

    public Contacto(String fijo, String celular, String email, String redSocial)
    {
        this.fijo = fijo;
        this.celular = celular;
        this.email = email;
        this.redSocial = redSocial;
    }
    
    public long getId()
    {
        return id;
    }

    public void setId(long id)
    {
        this.id = id;
    }

    public String getFijo()
    {
        return fijo;
    }

    public void setFijo(String fijo)
    {
        this.fijo = fijo;
    }

    public String getCelular()
    {
        return celular;
    }

    public void setCelular(String celular)
    {
        this.celular = celular;
    }

    public String getEmail()
    {
        return email;
    }

    public void setEmail(String email)
    {
        this.email = email;
    }

    public String getRedSocial()
    {
        return redSocial;
    }

    public void setRedSocial(String redSocial)
    {
        this.redSocial = redSocial;
    }
    
    @Override
    public String toString ()
    {
        return this.email + " / " + this.celular;
    }
}
